//
//  BQWelfareCollectionViewFirstCell.m
//  Adorable_Things
//
//  Created by ybq on 16/1/15.
//  Copyright © 2016年 Banana Inc. All rights reserved.
//

#import "BQWelfareCollectionViewFirstCell.h"

@implementation BQWelfareCollectionViewFirstCell

- (void)awakeFromNib {
    // Initialization code
    self.layer.cornerRadius = 5;
}

- (void)setModel:(BQWelfareListModel *)model {
    _model = model;
    [_mainImageView sd_setImageWithURL:[NSURL URLWithString:model.pic_url] placeholderImage:nil];
    _titleLabel.text = model.title;
    _stockLabel.text = [NSString stringWithFormat:@"剩余%@件",model.stock];
    _priceLabel.text = [NSString stringWithFormat:@"%@",model.price];
}

@end
